package com.logbug.hashmap;

import java.util.HashMap;
import java.util.function.Function;

public class TestHashMap {
    public static void main(String[] args) {
        HashMap<String, HashMap<String, Object>> map = new HashMap<>();
        map.computeIfAbsent("k1", k -> new HashMap<>()).put("k1.1", "hello");
        System.out.println("map = " + map);

        ThreadLocal<String> threadLocal=ThreadLocal.withInitial(()->"world");
        String threadLocalValue = threadLocal.get();
        System.out.println("threadLocalValue = " + threadLocalValue);
    }
}
